import { request } from '@/service/request';

/** 新增内部ECN */

export function addInteriorEcn(data: any) {
  return request({
    url: '/erpsyncmes/Ecn/innerEcnAdd',
    method: 'post',
    data
  });
}

/** 获取生产型号ID */
export function getProductionModelId(moduleNo: string) {
  return request({
    url: '/erpsyncmes/Mi/findModuleNo',
    method: 'get',
    params: {
      moduleNo,
      pageNum: 1,
      pageSize: 200
    }
  });
}

/** 获取WIP结存 */

export function getWIPInventory(params: any) {
  return request({
    url: '/erpsyncmes/wip/selectWipPubtechnology',
    method: 'get',
    params
  });
}
